package com.eportal.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.eportal.base.BaseDAO;
import com.eportal.base.BaseDAOImpl;
import com.eportal.domain.SystemLog;
import com.eportal.service.SystemLogService;
import com.framework.jqgrid.JqGridPager;

/**
 * 系统日志管理业务逻辑接口实现
 */
@Service("systemLogService")
public class SystemLogServiceImpl implements SystemLogService {
	@Resource(name="dao")
	private BaseDAO dao;
	
    public List<SystemLog> browseSystemLog(JqGridPager jqGridPager) {
    	 String sql = "select * from systemlog";
	     return dao.query(sql, jqGridPager);
    }

    /**
     * 新增或修改系统日志
     * @throws Exception 
     */
    public SystemLog save(SystemLog systemLog) throws Exception {
        dao.save(systemLog);
        return systemLog;
    }
}
